import request from '@/utils/request'

// 查询已投项目列表
export function listGpVotedProject(query) {
  return request({
    url: '/gp/gpVotedProject/list',
    method: 'get',
    params: query
  })
}

// 查询已投项目详细
export function getGpVotedProject(id) {
  return request({
    url: '/gp/gpVotedProject/' + id,
    method: 'get'
  })
}

// 计算MOIC与DPI
export function calculate(data) {
  return request({
    url: '/gp/gpVotedProject/calculate',
    method: 'post',
    data: data
  })
}

// 保存已投项目
export function saveGpVotedProject(data) {
  return request({
    url: '/gp/gpVotedProject/save',
    method: 'post',
    data: data
  })
}

// 删除已投项目
export function delGpVotedProject(id) {
  return request({
    url: '/gp/gpVotedProject/' + id,
    method: 'delete'
  })
}

// 导出已投项目
export function exportGpVotedProject(query) {
  return request({
    url: '/gp/gpVotedProject/export',
    method: 'get',
    params: query
  })
}
